package model.Actions;

import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import view.ViewFunctions;
import DB.Connection.DBConnectionManager;

import commons.Entities.LegenCharacterThin;

public class getTopTenReviewedCharactersAction implements Runnable {

	private static final Log logger = LogFactory.getLog(addCharacterCommentAction.class);

	public getTopTenReviewedCharactersAction() {
	}

	@Override
	public void run() {
		logger.info("getTopTenReviewedCharactersAction starting...");

		List<LegenCharacterThin> characters = DBConnectionManager.get().getTopTenReviewedCharactersFromDB();
		ViewFunctions.get().updateGUITopTenReviewedCharacters(characters);

		logger.info("getTopTenReviewedCharactersAction ended.");
	}
}
